package com.open.capacity.notice.dmo;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.open.capacity.notice.enums.MsgType;
import com.open.capacity.notice.enums.SendMessageTaskStatus;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 发送子任务
 * @since 2024-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("msg_send_task")
public class SendMessageTask implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "ID", type = IdType.ASSIGN_ID)
	private String id;

	private String jobId;

	private String sendType;

	private MsgType msgType;

	private String sendMessage;

	@ApiModelProperty(value = "触发类型")
	private Boolean timer;

	@ApiModelProperty(value = "cron表达式")
	private String cron;

	@ApiModelProperty(value = "屏蔽")
	private Boolean shield;

	@ApiModelProperty(value = "cron表达式")
	private String shieldTime;

	private String receciverName;

	private String receciver;

	private Date sendTime;

	private String failure;

	private SendMessageTaskStatus status;
	
	private String extendInfo;

}
